package org.app.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("service_request")
public class ServiceRequest implements Serializable {
    
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    
    private Long userId;
    
    private Integer type;
    
    private String title;
    
    private String content;
    
    private String images;
    
    private String contact;
    
    private String address;
    
    private Integer status;
    
    private String reply;
    
    private LocalDateTime replyTime;
    
    private Long replyUserId;
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    
    @TableLogic
    private Integer isDeleted;
    
    // 数据库表中不存在的字段，仅用于前端展示
    @TableField(exist = false)
    private String username;
    
    @TableField(exist = false)
    private String phone;
} 